package com.example.constant;

import com.example.conventor.UserStatusEnum2Deserializer;
import com.example.conventor.UserStatusEnumDeserializer;
import com.example.conventor.UserStatusEnumSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;

/**
 * @author jeff
 * @since 2023/4/30 17:46
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@JsonSerialize(using = UserStatusEnumSerializer.class)
@JsonDeserialize(using = UserStatusEnum2Deserializer.class)
public enum UserStatus2 {


    DISABLE(3,"禁用"),
    ENABLE(4,"启用");

    @Getter
    private int value;
    @Getter
    private String desc;

    UserStatus2(int value, String desc){
        this.value=value;
        this.desc=desc;
    }
}
